package Practice;

import java.util.Arrays;
import java.util.Scanner;

public class Function {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[3];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = sc.nextInt();
        }

        Arrays.sort(arr);
        for (int i = 2; i <= arr[0] / 2; i++) {
            if (arr[0]%i==0&&arr[2]%i==0){
                arr[0] /= i;
                arr[2] /= i;
            }
        }
        System.out.println(arr[0]+"/"+arr[2]);
    }
}
